package com.jxltech.krpano.api.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 *
 * @author taylor
 */
@Component
@ConfigurationProperties(prefix = "krpano")
public class Global {
	/**
	 * static file path
	 */
	@Getter
	@Setter
	private String path;

	/**
	 * design path
	 */
	@Getter
	@Setter
	private String designPath;

	/**
	 * design path
	 */
	@Getter
	@Setter
	private String templatePath;

	/**
	 * design mail
	 */
	@Getter
	@Setter
	private String designMail;

	/**
	 * partition index file
	 */
	@Getter
	@Setter
	private String partitionFile;

	/**
	 * partition file dir
	 */
	@Getter
	@Setter
	private String partitionDir;

	/**
	 * 是否自动解压
	 */
	@Getter
	@Setter
	private boolean autoUnzip;


	/**
	 * backupDir
	 */
	@Getter
	@Setter
	private String backupDir;

	/**
	 * backupServer
	 */
	@Getter
	@Setter
	private String backupServer;

	/**
	 * backupPort
	 */
	@Getter
	@Setter
	private int backupPort;

	/**
	 * backupUser
	 */
	@Getter
	@Setter
	private String backupUser;

	/**
	 * backupPass
	 */
	@Getter
	@Setter
	private String backupPass;

	/**
	 * logo
	 */
	@Getter
	@Setter
	private String logo;

	/**
	 * return logo
	 */
	@Getter
	@Setter
	private String returnLogo;
}
